<template>
  <van-nav-bar :title="props.title" @click-left="router.back()">
    <template #left>
      <van-icon name="arrow-left" size="20"/>
    </template>
  </van-nav-bar>
</template>

<script setup>
import {defineProps} from 'vue'
import {useRoute, useRouter} from "vue-router"
const router = useRouter()
const props = defineProps(['title'])
</script>

<style scoped lang="less">
:deep(.van-nav-bar .van-icon){
  color: black;
}
</style>